/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jchy.renderit.core;

import java.util.ArrayList;

/**
 *
 * @author chyjm
 */
public class Scene {

    ArrayList<Displayable> displayables;
    ArrayList<Light> lights;

    public Scene() {
        displayables = new ArrayList<Displayable>();
        lights = new ArrayList<Light>();
    }

    public void addDisplayable(Displayable displayable) {

        displayables.add(displayable);

    }

    public int getDisplayableCount() {
        return displayables.size();
    }

    public Displayable getDisplayable(int count) {

        // TODO: use clone to return a clone of the object rather than the object itself
        return displayables.get(count);

    }

    public void addLight(Light light) {

        lights.add(light);

    }

    public int getLightCount() {

        return lights.size();

    }

    public Light getLight(int count) {

        // TODO: use clone to return a clone of the object rather than the object itself
        return lights.get(count);
    }

    public void removeDisplayable(int count) {
        displayables.remove(count);
    }

    public void removeLight(int count) {
        lights.remove(count);
    }

}
